<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>2048</title>
		<link rel="stylesheet" type="text/css" href="2048.css"/>
	</head>
	<body>
		<section id="game">
			<header>
				<h1>2048</h1>
				<button onclick="NewGame()">开始</button>
				<p>score:<span v-text='score'></span> </p>
			</header>
			<div id="gird-container">
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[0]" v-text='board[0]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[1]" v-text='board[1]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[2]" v-text='board[2]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[3]" v-text='board[3]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[4]" v-text='board[4]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[5]" v-text='board[5]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[6]" v-text='board[6]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[7]" v-text='board[7]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[8]" v-text='board[8]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[9]" v-text='board[9]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[10]" v-text='board[10]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[11]" v-text='board[11]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[12]" v-text='board[12]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[13]" v-text='board[13]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[14]" v-text='board[14]'></div>
				</div>
				<div class="grid-cell">
					<div class="num-cell" :class="'_'+board[15]" v-text='board[15]'></div>
				</div>			
			</div>
		</section>
		
		<script src="jquery.min.js"></script>
		<script src="vue.min.js"></script>
		<script type="text/javascript" src="support.js"></script>
		<script type="text/javascript" src="show.js"></script>
		<script type="text/javascript" src="main.js"></script>
	</body>
</html>
